<ui:composition template="/templates/template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="title">
       Abertura de O.S
    </ui:define>

	<ui:define name="conteudo">
		<h:head>
			<h:form>
				<div align="center">
					<p:panel id="panel" header="Nova O.S"
						style="margin-bottom:10px; width:80%;">

						<div align="left">
							<div>
								<p:messages id="msgs" showDetail="true" />
							</div>
							<h:panelGroup>
								<h:panelGrid>
									<h:panelGrid columns="4">
										<h:outputLabel value="Cpf/Cgc:" for="cpf" />
										<p:inputText id="cpf" value="#{cadastroMB.cpf}"
											style="width:80%" />
									<p:inputText id="nome" value="#{cadastroMB.nome}"
											style="width:180%" />
										<p:message for="cpf" />
									</h:panelGrid>

									<h:panelGrid columns="4">
										<h:outputLabel value="Produto:" for="produto" />
										<p:inputText id="produto" title="Codigo Produto" value="#{cadastroMB.nome}"
											style="width:40%" />
										<p:inputText id="descricao" title="Descricao do Produto" value="#{cadastroMB.nome}"
											style="width:80%" />
										<p:message for="produto" />
									</h:panelGrid>

									<h:outputLabel value="Observacao:" for="observacao" />
									<p:inputTextarea id="observacao" style=" width:90%;"
										value="#{cadastroMB.nome}" rows="3" />
									<p:message for="observacao" />
								</h:panelGrid>
								<div align="right">
									<p:commandButton value="Salvar"
										actionListener="#{cadastroMB.salvar}" ajax="true"
										update="msgs" />
								</div>
							</h:panelGroup>
						</div>
					</p:panel>
				</div>
			</h:form>
		</h:head>
	</ui:define>
</ui:composition>